use the GdkDisplay get_setting vfunc
authorMatthias Clasen <mclasen@redhat.com>
Mon, 30 Oct 2017 20:44:47 +0000 (16:44 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 30 Oct 2017 20:44:47 +0000 (16:44 -0400)
Instead of calling the GdkScreen implementation, use our
own vfunc now.

gdk/gdkdisplay.c

index f8989c623de467e953e4efdb530e20a777417f5f..febd9abef18ea3d599110da0a256f93f4f079adf 100644 (file)
@@ -2238,7 +2238,11 @@ gdk_display_get_setting (GdkDisplay *display,
                          const char *name,
                          GValue     *value)
 {
-  return gdk_screen_get_setting (gdk_display_get_default_screen (display), name, value);
+  g_return_val_if_fail (GDK_IS_DISPLAY (display), FALSE);
+  g_return_val_if_fail (name != NULL, FALSE);
+  g_return_val_if_fail (value != NULL, FALSE);
+
+  return GDK_DISPLAY_GET_CLASS (display)->get_setting (display, name, value);
 }
 
 void